import {customeStruct} from '../utils';
const itf = customeStruct.interface;

const content = {
    id: 'string',
    code: 'string',
    dealerCode: 'string',
    dealerName: 'string? | null',
    totalQuantity: 'number? | null',
    partOrderTypeName: 'string? | null',
    partOrderPriceTerms: 'number? | null',
    paymentType: 'number? | null',
    status: 'number',
    createTime: 'datetime? | null',
    rowVersion: 'string',
    options: ['string']
};

export const List = itf({
    payload: itf({
        content: [itf(Object.assign(content))]
    })
});

export const Detail = itf({
    payload: itf({
        id: 'string',
        code: 'string',
    })
});
